package cn.jsu.oj.judgment.handle;

import cn.jsu.oj.judgment.net.starter.ServiceStarter;
import cn.jsu.oj.judgment.parsing.HandleType;

/**
 * 判题机验证处理器
 *
 */
@HandleType(type = 92)
public class JudgeClientVerifyHandler implements Handle {
    
    @Override
    public CommandPack<?> handle(CommandPack<?> pack) {
        String[] split = pack.getIdentity().split("-");
        if (split[1].equals("7777"))
        ServiceStarter.judgeVerifySign = true;
        else
            ServiceStarter.judgeWriteVerifySign = true;
        System.out.println(split[1]);
        return null;
    }
}
